package com.oig.sys.msg.file.impl;

import com.oig.sys.file.api.FileUploadService;
import com.oig.sys.msg.file.IDepFileDownloadService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@RequiredArgsConstructor
public class DepFileDownloadServiceImpl implements IDepFileDownloadService {

    private final FileUploadService fileUploadService;


    public ResponseEntity<byte[]> download(String fileId){
        return this.fileUploadService.download(fileId);
    }

}
